package com.wlc.mapper;

import com.wlc.pojo.ResignationStats;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ResignationStatsMapper {

    // 部门辞职统计
    List<ResignationStats> selectDeptResignationStats(@Param("year") String year);

    // 月度辞职趋势
    List<ResignationStats> selectMonthlyResignationTrend(@Param("year") String year);

    // 辞职原因统计
    List<ResignationStats> selectResignReasonStats(@Param("year") String year);

    // 辞职状态统计
    List<ResignationStats> selectResignationStatusStats(@Param("year") String year);

    // 在职时长统计
    List<ResignationStats> selectWorkDurationStats(@Param("year") String year);

    // 辞职汇总统计
    ResignationStats selectResignationSummary(@Param("year") String year);

    // 年度辞职率趋势
    List<ResignationStats> selectYearlyResignationRate(@Param("startYear") Integer startYear,
                                                       @Param("endYear") Integer endYear);
}